package com.redoor.app.stake.basicdata.model.constants;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by wangjunlei on 2018/1/24.
 */
public class BasicDataRedisConstants {


    public static final Long REDIS_OVER_TIME_MIN =  60L;
    public static final Long REDIS_OVER_TIME_HOUR = 60 * 60L;
    public static final Long REDIS_OVER_TIME_DAY =  60 * 60 * 24L;

    public static final String REDIS_LOGIN_USER_KEY = "REDIS_LOGIN_USER_KEY:";

    /**
     * REDIS存放站信息前缀
     */
    public static final String REDIS_STATION_PRE = "STATION:";

    /**
     * REDIS存放枪信息前缀
     */
    public static final String REDIS_CHARGER_PRE = "CHARGER:";

    /**
     * REDIS存放HSF接口枪信息前缀
     */
    public static final String REDIS_CHARGER_HSF_PRE = "CHARGER_HSF_H:";

    /**
     * REDIS存放HSF接口站信息前缀
     */
    public static final String REDIS_STATION_HSF_PRE = "STATIONS_HSF_H:";


    /**
     * REDIS存放基础桩信息前缀
     */
    public static final String REDIS_STAKE_PRE = "STAKE:";

    /**
     * REDIS存放基础PROP信息前缀
     */
    public static final String REDIS_PROP_PRE = "BASE_PROP";

    /**
     * REDIS存放注册码信息前缀
     */
    public static final String REDIS_REGISTRATION_PRE = "REGISTRATION:";

    /**
     * REDIS存放HSF接口桩信息前缀
     */
    public static final String REDIS_STAKE_HSF_PRE = "STAKE_HSF_H:";

    /**
     * REDIS存放桩信息后缀
     */
    public static final String REDIS_STAKE_ORG_PRE = "STAKE_ORG_INDEX";

    /**
     * 站状态:待投运
     */
    public static final int STATION_STATUS_TRIAL = 2 ;
    /**
     * 站状态:运行
     */
    public static final int STATION_STATUS_OPERATION = 3 ;

    /**
     * 站状态:维护
     */
    public static final int STATION_STATUS_MAINTENANCE = 8 ;
    /**
     * 站状态:停运
     */
    public static final int STATION_STATUS_PULLOUT = 10 ;
    /**
     * 站状态:退运
     */
    public static final int STATION_STATUS_STOP = 11 ;

    /**
     * 国网标识 0,1
     */
    public static final List<Integer> THIRD_SGCC = new ArrayList<>( Arrays.asList(0,1));

    /**
     * 非国网标识 2,3,4
     */
    public static final List<Integer> THIRD_NO_SGCC = new ArrayList<>( Arrays.asList(2,3,4));

    /**
     * 公用站
     */
    public static final int STATION_URPOSETYPE_PUBLIC = 2;

    /**
     * 专用站
     */
    public static final int STATION_URPOSETYPE_PRIVATE = 1;

    /**
     * 站outstationno最大值缓存key
     */
    public static final String STATION_OUT_NO_PRE = "STATION_OUT_NO_MAX";

    /**
     * 桩初始编码，标记为新桩
     */
    public static final String INIT_STAKE_NO = "0000000000000000";

    /**
     * REDIS通用参数表存放key
     */
    public static final String REDIS_BASE_CONSTS = "BASE_CONSTS";
}
